package api.betfairAPI;

import com.betfair.www.publicapi.types.exchange.v5.Market;

/**
 * User: Darren
 * Date: 19/01/13
 * Time: 8:38 PM
 */
public class BetfairExchangeMarket {
    static final int UK_EXCHANGE_ID = 1;
    private static final int AUS_EXCHANGE_ID = 2;
    private Market market;
    private int exchangeId;

    BetfairExchangeMarket(Market market, int exchangeId) {
        this.market = market;
        this.exchangeId = exchangeId;
    }

    public Market getMarket() {
        return market;
    }
    public int getExchangeId() {
        return exchangeId;
    }

    public String getExchangeName() {
        return exchangeId == UK_EXCHANGE_ID ? "UK" : "AUS";
    }
}
